package xiaolong.zhou.spring_demo.Pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.text.DateFormat;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class User {
    @TableId(value="1",type = IdType.AUTO)
    private Integer id;
    @NotEmpty(message = "昵称不能为空")
    private String user;
    @NotEmpty(message = "手机号不能为空")
    private String phone;
    @JsonIgnore
    @NotEmpty(message = "请填写密码")
    private String password;
    @NotEmpty(message = "请上传头像")
    private String avatar;
    private Float price;
    @NotEmpty(message = "邮箱地址不存在")
    private String email;
    private String deleteTime;
    private String createTime;

}
